package com.enba.mallapi.module.auth.controller.req;

import io.swagger.annotations.ApiModelProperty;
import java.util.Set;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

@Data
public class UserBindRoleReq {

  @ApiModelProperty(value = "用户id")
  @NotNull(message = "用户id不能为空")
  private Long userId;

  @ApiModelProperty(value = "角色id集合")
  @NotNull(message = "角色id集合不能为空")
  @Size(min = 1, message = "角色id集合不能为空")
  private Set<Long> roleIdSet;
}
